$name: #{'.' + $namespace + '-load-page'};

#{$name} {
  @keyframes fade-out {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  position: fixed;
  @include locate();
  background: var(--load-page-background);
  padding: 32rpx;
  display: flex;
  flex-direction: column;
  animation: fade-out var(--load-page-transition-duration) linear;
  animation-play-state: paused;
  z-index: $zIndex;

  &__bottom {
    flex: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    &>#{$name}__progress {
      --progress-transition: var(--load-page-progress-transition-duration) linear;
    }

    &>#{$name}__copyright {
      margin-top: 32rpx;
      font-size: 24rpx;
      line-height: 32rpx;
      white-space: pre;
      text-align: center;
    }
  }

  &.is-transition {
    animation-play-state: running;
  }
}